package com.its.us.web.controller.sys.base;

/**
 * @Author: master
 * @Date: 2020/10/30 21:20
 * @Version: 1.0
 */
public abstract class BaseAbsController {


    protected Result ok(Object obj) {
        Result result = new Result();
        result.setCode(0);
        result.setMsg("成功.");
        result.setObj(obj);
        return result;
    }


    protected Result fail(int code,String msg) {
        Result result = new Result();
        result.setCode(code);
        result.setMsg(msg);
        return result;
    }
}
